import { defineStore } from 'pinia'

export const useGraphStore = defineStore('graphStore', {
  state: () => {
    return { graphId: '', graphLabel: '' }
  },
  // 也可以定义为
  // state: () => ({ count: 0 })
  actions: {
    increment(val: string) {
      this.graphId = val
    },
  },
})